/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package th.model;

/**
 *
 * @author HARISH
 */
import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.CascadeType;

@Entity
@Table(name = "kod_alasan")
@NamedQueries({
@NamedQuery(name = "KodAlasan.findAll", query = "SELECT p FROM KodAlasan p")})
public class KodAlasan implements Serializable{
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "kod")
    private String kod;
    
    @Column(name = "nama")
    private String nama;

    @Column(name = "kod_seq")
    private String kod_seq;
        
    public String getKod() {
        return kod;
    }

    public void setKod(String kod) {
        this.kod = kod;
    }

    public String getNama() {
        return nama;
    }

    public void setNama(String nama) {
        this.nama = nama;
    }

    public String getKod_seq() {
        return kod_seq;
    }

    public void setKod_seq(String kod_seq) {
        this.kod_seq = kod_seq;
    }
    
    
}
